package domain;

/**
 * @author: 爱学Java 不想秃头的 KK
 * @date: 2023/7/4 8:37
 * @version: 1.0
 * @Created with IntelliJ IDEA.
 * @Description:
 */
public class Article {
    private int rid; //文章id
    private int cid; //分类id
    private char visible; // 是否自己可见
    private String title; //文章标题
    private String text; //文章内容
    private String createTime; //创建时间
    private String modifyTime; //修改时间
    private int browserNum; //浏览量
    private int favour; //点赞数量
    private char recycle; //是否放入回收站
    private String code; //uuid

    public int getRid() {
        return rid;
    }

    public void setRid(int rid) {
        this.rid = rid;
    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public char getVisible() {
        return visible;
    }

    public void setVisible(char visible) {
        this.visible = visible;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(String modifyTime) {
        this.modifyTime = modifyTime;
    }

    public int getBrowserNum() {
        return browserNum;
    }

    public void setBrowserNum(int browserNum) {
        this.browserNum = browserNum;
    }

    public int getFavour() {
        return favour;
    }

    public void setFavour(int favour) {
        this.favour = favour;
    }

    public char getRecycle() {
        return recycle;
    }

    public void setRecycle(char recycle) {
        this.recycle = recycle;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return "Article{" +
                "rid=" + rid +
                ", cid=" + cid +
                ", visible=" + visible +
                ", title='" + title + '\'' +
                ", text='" + text + '\'' +
                ", createTime='" + createTime + '\'' +
                ", modifyTime='" + modifyTime + '\'' +
                ", browseNumber=" + browserNum +
                ", favour=" + favour +
                ", recycle=" + recycle +
                ", code='" + code + '\'' +
                '}';
    }
}
